home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
H190.ZIP
/
VERTEX1.EXE
/
ENTRY.PRG
< prev
next >
Wrap
Text File
|
1992-09-12
|
1KB
|
31 lines
FUNCTION entry
LOCAL lFile := "ESAMPLE.DBF",; && sample file for using MFDATAENTRY()
lScrSave := "",; && saved screen
lCurrCol := COL(),; && current cursor position (COLUMN)
lCurrRow := ROW() && current cursor position (ROW)
lScrSave := SAVESCREEN( 0, 0, MAXROW(), MAXCOL() )
utinit() && must be used as first function
&& to initialize drivers and globals
&& needed....
IF !FILE( lFile ) && check if sample file exists
lFile := MFSELFILE( "DBF" ) && allow user to select one...
ENDIF
&& use the database
IF( !EMPTY(lFile), DBUSEAREA( .T., "DBFNTX", lFile, "SAMPLE", .F. ), "" )
mfdataentry() && work all fields
&& slide screen off........
VISLIDEOFF( 0, 0, MAXROW(), MAXCOL(), lScrSave, 1 )
DEVPOS( lCurrRow, lCurrCol ) && reset cursor to old position
RETURN NIL